This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jul 2, 2012, 8:52 PM
2 Posts

In mobile app, documents still appear in view after deleting

  • Category: Extension Library
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: mobile controls
  • Replies: 2
 I have an Xpages app built using 8.5.3 Mobile extensions in Upgrade Pack (not OpenNTF).  Single page app with one form and four views.  When I click the Delete button on a document,  the moveTo takes me to the most recent view, but the document is still visible in the view. The view doesn't reflect the deletion until I reload the app.  Clicking on the deleted document in the view or using pager controls produces the expected error - document has been deleted, so I ruled out ACL privs.
 
I think I'm using the same code as the Delete button in 8.5.3 Discussion db, except that the button is within a Tab Bar.  Doesn't seem to matter which of the 4 views I return to - the "deleted" document is still there.  Any suggestions?  (Soft deletes not enabled, btw.)
 
<xe:tabBarButton id="tabBarButton5" label="Delete"
title="Delete">

<xp:eventHandler event="onClick" submit="true" refreshMode="complete">
<xp:this.action>
<xp:actionGroup>
<xp:confirm
message="Are you sure you want to delete this document?">
</xp:confirm>
<xp:executeScript>
<xp:this.script><![CDATA[#{javascript:var doc:NotesDocument=document1.getDocument();doc.remove(true);}]]></xp:this.script>
</xp:executeScript>
<xe:moveTo direction="Left to Right"
transitionType="slide" targetPage="#{javascript:from}"
forceFullRefresh="true">
</xe:moveTo>
</xp:actionGroup>
</xp:this.action></xp:eventHandler></xe:tabBarButton> 
 
 
Jul 4, 2012, 6:57 AM
126 Posts
Re: In mobile app, documents still appear in view after deleting
try adding this to the app page control that is displaying the deleted document:
 
resetContent="true" 
 
The teamroom and discussion do not have this issue and the only thing they do is the above and have  
 
forceFullRefresh="true" 
 
in the moveTo simple action which your code shows you have, make sure those 2 are being used 
Jul 4, 2012, 1:51 PM
2 Posts
Re: In mobile app, documents still appear in view after deleting
 Thanks for the reply.  All of the pages have resetContent="true", for example:
 
<xe:appPage id="appPage2" pageName="MyAssignments" resetContent="true"> 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal